package com.hisense.hiioc.formtable.service;

import com.github.pagehelper.PageInfo;
import com.hisense.hiioc.formtable.domain.Form;
import com.hisense.hiioc.formtable.domain.FormAndRows;
import org.springframework.stereotype.Component;

@Component
public interface FormService extends CommonService<Form> {

    @Override
    int insert(Form obj);

    @Override
    int deleteById(int id);

    @Override
    int update(Form obj);

    @Override
    Form queryOne(int id);

    @Override
    PageInfo<Form> queryAll(int page, int size);

    /**
     * 查询表单列表的时候加上数据条数、字段个数、是否建表等字段
     * @return
     */
    PageInfo<FormAndRows> queryFormAndRows(String searchValue,int page, int size);

}
